package com.github.binarywang.demo.wx.mp.beans;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AdvertMpData {
    @ApiModelProperty("平台")
    private String platform;
    @ApiModelProperty("是否有效")
    private Boolean effective;
    /**
     * 类型 QR 二维码 LINK 链接
     */
    @ApiModelProperty("类型 QR 二维码 LINK 链接")
    private String type;
    @ApiModelProperty("链接")
    private String url;
    @ApiModelProperty("额外数据")
    private Object data;

    public static AdvertMpData notFind() {
        return AdvertMpData.builder()
            .effective(false)
            .data(null)
            .build();
    }
}
